/**
 * This file is part of 1genia trampoline
 * Copyright (C) 2007 1genia (contact@1genia.com)
 *
 * This library is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; version 3 of the License. 
 *
 * This library is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details. 
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; see the file COPYING.TXT.  If not,
 * write to the Free Software Foundation, Inc., 51 Franklin Street,
 * Fifth Floor, Boston, MA 02110-1301, USA. 
 **/
package com.genia.toolbox.web.gwt.form.server.description.impl;

import java.util.ArrayList;
import java.util.List;

import com.genia.toolbox.basics.i18n.I18nMessage;
import com.genia.toolbox.web.gwt.form.server.description.Description;
import com.genia.toolbox.web.portlet.description.VariableDescription;

/**
 * Implementation of
 * {@link com.genia.toolbox.web.gwt.form.server.description.Description}.
 */
public class DescriptionImpl
    implements Description
{

  /**
   * the name of the class of the to generate.
   */
  private String className;

  /**
   * the description to display.
   */
  private I18nMessage description;

  /**
   * the name to display.
   */
  private I18nMessage name;

  /**
   * the list of the descriptions of the variables.
   */
  private List<VariableDescription> variableDescriptions = new ArrayList<VariableDescription>();



  /**
   * getter for the className property.
   * 
   * @return the className
   */
  public String getClassName()
  {
    return className;
  }



  /**
   * setter for the className property.
   * 
   * @param className
   *          the className to set
   */
  public void setClassName(String className)
  {
    this.className = className;
  }



  /**
   * getter for the description property.
   * 
   * @return the description
   */
  public I18nMessage getDescription()
  {
    return description;
  }



  /**
   * setter for the description property.
   * 
   * @param description
   *          the description to set
   */
  public void setDescription(I18nMessage description)
  {
    this.description = description;
  }



  /**
   * getter for the name property.
   * 
   * @return the name
   */
  public I18nMessage getName()
  {
    return name;
  }



  /**
   * setter for the name property.
   * 
   * @param name
   *          the name to set
   */
  public void setName(I18nMessage name)
  {
    this.name = name;
  }



  /**
   * getter for the variableDescriptions property.
   * 
   * @return the variableDescriptions
   */
  public List<VariableDescription> getVariableDescriptions()
  {
    return variableDescriptions;
  }



  /**
   * setter for the variableDescriptions property.
   * 
   * @param variableDescriptions
   *          the variableDescriptions to set
   */
  public void setVariableDescriptions(List<VariableDescription> variableDescriptions)
  {
    this.variableDescriptions = variableDescriptions;
  }

}
